package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.ExperimentProcessDetail;
import com.zhijian.medical.entity.vo.request.ExperimentProcessDetailSaveOrUpdateVo;
import com.zhijian.medical.entity.vo.request.ExperimentProcessDetailSearchVo;
import com.zhijian.medical.entity.vo.response.ExperimentProcessDetailVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 实验流程-实验详情 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2022-04-07 22:44:12
 */
public interface ExperimentProcessDetailService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    ExperimentProcessDetail selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    ExperimentProcessDetailVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 新增
     *
     * @param experimentProcessDetail
     * @return
     */
    Long insert(ExperimentProcessDetail experimentProcessDetail);

    /**
     * 更改
     *
     * @param experimentProcessDetail
     * @return
     */
    boolean update(ExperimentProcessDetail experimentProcessDetail);

    /**
     * 修改
     *
     * @param record
     * @return
     */
    boolean updateByExperimentProcessId(ExperimentProcessDetailSaveOrUpdateVo record);

    /**
     * 修改实验报告的检测日期
     *
     * @param experimentProcessId
     * @param date
     * @return
     */
    boolean updateDate(Long experimentProcessId, String date);

    /**
     * 根据实验流程id新增或者修改
     *
     * @param experimentProcessDetailSaveOrUpdateVo
     * @return
     */
    boolean saveOrUpdate(ExperimentProcessDetailSaveOrUpdateVo experimentProcessDetailSaveOrUpdateVo);

    /**
     * 更改
     *
     * @param experimentProcessDetail
     * @return
     */
    boolean updateByPrimaryKeySelective(ExperimentProcessDetail experimentProcessDetail);

    /**
     * 总数
     *
     * @param experimentProcessDetailSearchVo
     * @return
     */
    Integer count(ExperimentProcessDetailSearchVo experimentProcessDetailSearchVo);

    /**
     * 列表
     *
     * @param experimentProcessDetailSearchVo
     * @return
     */
    List<ExperimentProcessDetailVo> selectList(ExperimentProcessDetailSearchVo experimentProcessDetailSearchVo);

    /**
     * 分页查询
     *
     * @param experimentProcessDetailSearchVo
     * @return
     */
    Page<ExperimentProcessDetailVo> selectPage(ExperimentProcessDetailSearchVo experimentProcessDetailSearchVo);

    /**
     * 根据实验流程id查找vo
     *
     * @param experimentProcessId
     * @return
     */
    ExperimentProcessDetailVo selectVoByExperimentProcessId(Long experimentProcessId);
}